package com.chen.recruit.service;

import com.chen.recruit.common.api.CommonResult;
import com.chen.recruit.domain.Role;
import com.chen.recruit.domain.vo.RoleVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 角色Service接口
 *
 * @author cgy
 * @date 2022-08-17
 */
public interface RoleService extends IService<Role> {

    CommonResult addOrUpdateRole(RoleVo vo);

    CommonResult deleteRoleByIds(Integer[] roleIds);

    List<Role> getRolesByUserId(Object userId);

    List<Integer> getMenuIdsByRoleId(Integer roleId);

}
